//
//  SXDataBaseManager.h
//  ShiXun
//
//  Created by lanou on 15/10/24.
//  Copyright © 2015年 张琪. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "FMDatabase.h"

typedef NS_ENUM(NSUInteger, dataBaseManageType) {
    dataBaseManageTypeStoreData, // 存入
    dataBaseManageTypeQueryData // 读取
};

typedef void(^getDataFromDict)(NSData *data);

@interface SXDataBaseManager : NSObject

+ (void)DBManage:(NSData *)data dataName:(NSString *)dataName manageType:(dataBaseManageType)type getDataFromDict:(getDataFromDict)getDataBlock;

+ (void)dataStoreIntoDB:(FMDatabase *)db data:(NSData *)data dataName:(NSString *)dataName;

+ (void)dataQueryFromDB:(FMDatabase *)db getDataFromDict:(getDataFromDict)getDataBlock dataName:(NSString *)dataName;

@end
